<template>
  <ych-modal
    :fullscreen="true"
    :title="title"
    :visible="visible"
    :destroyOnClose="true"
    @ok="handleOk"
    @cancel="handleCancel"
    :cancelText="$t('m.common.button.close')">

    <BootProjectFormModal ref="form" v-on="$listeners" v-bind="$attrs" @refreshParent="refreshParent"/>
  </ych-modal>
</template>

<script>

  import {FormDialogMixin} from '@/mixins/FormDialogMixin'
  import BootProjectFormModal from './BootProjectFormModal'

  export default {
    name: 'BootProjectFormDialog',
    mixins: [FormDialogMixin],
    components: {
      BootProjectFormModal
    },
    data() {
      return {
        title: '后端工程配置',
      }
    },
    methods:{
      handleOk () {
        this.$refs.form.save()
      },
    }
  }
</script>
